package com.woniuxy.car.commodity.service.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 商品订单表
 * </p>
 *
 * @author awz
 * @since 2022-03-01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("kc_product_order")
@ApiModel(value = "ProductOrder对象", description = "商品订单表")
public class ProductOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品价格")
    private Float productPrice;

    @ApiModelProperty("商品信息")
    private String productInformation;

    @ApiModelProperty("商品分类")
    private Integer productClassify;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("状态")
    private Integer isDelete;

    @ApiModelProperty("创建用户")
    private String createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("购买用户ID")
    private Integer buyUserId;

    @ApiModelProperty("地址表ID")
    private Integer address;

    @ApiModelProperty("商品表ID")
    private Integer productId;

}
